#pragma once
#include <stdio.h>
#include <stdbool.h>
#include <pthread.h>
//定义链表的结点
struct clientInfo
{
    int fd;
    int count;
    pthread_t pid;
    struct clientInfo* next;
};

//创建一个带哨兵节点的链表
struct clientInfo* createList();
//头插
struct clientInfo* pushFront(struct clientInfo* head,int fd);
//删除
bool eraseNode(struct clientInfo* head,int fd);
//释放链表
void freeList(struct clientInfo* head);